package com.li.springbootproject.spring.propertiesinto;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2021年11月20日 17:09:00
 */
@Component
public class TestPropertiestInit {

    private static final Logger logger = LoggerFactory.getLogger(TestPropertiestInit.class);

    @Autowired
    private PeopleBeanThree peopleBeanThree;

    @PostConstruct
    private void init() {
        logger.info("peopleThree:{}", peopleBeanThree.toString());
    }

}
